package com.demo.controller;

import com.demo.domain.TtDetails;
import com.demo.service.TtDetailsService;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RestController;

import javax.annotation.Resource;
import java.util.List;

/**
 * (TtDetails)表控制层
 *
 * @author makejava
 * @since 2021-07-07 15:51:16
 */
@RestController
public class TtDetailsController {
    /**
     * 服务对象
     */
    @Resource
    private TtDetailsService ttDetailsService;

    /**
     * 通过主键查询单条数据
     *
     * @return 单条数据
     */
    @GetMapping("/selectOne")
    public List<TtDetails> selectOne() {
        return ttDetailsService.queryById();
    }

}
